using System;
using System.Collections.Generic;
using System.Text;
using Cobalt75.GreyMatter;
namespace Cobalt75.GreyMatter.TesterTypes
{

    [
    GMTable(
        TableName = "contacttypes",
        TableID = "CONTYP",
        ApproxSize = 25,
        Priority = 65
        )
    ]
    public class ContactType : GMTableNamed
    {
        public ContactType(GMCommunicator communicator)
            : base(communicator)
        {
        }

        private static ContactType pManufacturer;
        public static ContactType Manufacturer(GMCommunicator communicator)
        {
            if (pManufacturer == null)
            {
                pManufacturer = communicator.SelectFromName<ContactType>("Manufacturer");
            }
            return (pManufacturer);
        }
        private static ContactType pSupplier;
        public static ContactType Supplier(GMCommunicator communicator)
        {
            if (pSupplier == null)
            {
                pSupplier = communicator.SelectFromName<ContactType>("Supplier");
            }
            return (pSupplier);
        }
        private static ContactType pAgent;
        public static ContactType Agent(GMCommunicator communicator)
        {
            if (pAgent == null)
            {
                pAgent = communicator.SelectFromName<ContactType>("Agent");
            }
            return (pAgent);
        }
    }

}
